package whr.modules.sys.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import whr.modules.sys.entity.SysOrganizations;

import java.util.List;
import java.util.Map;

/**
 * @author LENOVO
 * @description 针对表【sys_organizations】的数据库操作Mapper
 * @createDate 2024-09-23 16:23:40
 * @Entity whr.modules.sys.entity.SysOrganizations
 */
public interface SysOrganizationsMapper extends BaseMapper<SysOrganizations> {


    Page<SysOrganizations> selectPage(Page<SysOrganizations> page, QueryWrapper<SysOrganizations> queryWrapper);

    SysOrganizations seleteById(Integer id);

    int insertOrg(SysOrganizations sysOrganizations);

    List<SysOrganizations> selectByName(String name);

    /*
     * 通过组织id查询
     * */
    String getOrganizationName(Integer id);

    /*
     * 通过组织名称查询组织id
     * */
    Integer getOrganizationId(String name);


    List<SysOrganizations> selectByLikeName(String name);


}




